function check() {
  while ((leftimg === centerimg) || (leftimg === rightimg) || (centerimg === rightimg)) {
    render();

    console.log("check funaction");
  }
}
//function to check  if the imgs are the same 
function to check  if the imgs are the same
function to check if the imgs are the same
function check() {
  while ((leftimg === centerimg) || (leftimg === rightimg) || (centerimg === rightimg)) {
    render();
    console.log("check funaction");
  }
}
function check ( ) { while ( ( leftimg === centerimg ) || ( leftimg === rightimg ) || ( centerimg === rightimg ) ) { render ( ) ; console . log ( "check funaction" ) ; } }
function to check  if the imgs are the same
function to check if the imgs are the same