function hideStar() {
  const starLi = document.querySelectorAll('.stars li');
  for (star of starLi) {
    if (star.style.display !== 'none') {
      star.style.display = 'none';
      break;
    }

  }
}
// To hide stars based on moves
To hide stars based on moves
To hide stars based on moves
function hideStar() {
  const starLi = document.querySelectorAll('.stars li');
  for (star of starLi) {
    if (star.style.display !== 'none') {
      star.style.display = 'none';
      break;
    }
  }
}
function hideStar ( ) { const starLi = document . querySelectorAll ( '.stars li' ) ; for ( star of starLi ) { if ( star . style . display !== 'none' ) { star . style . display = 'none' ; break ; } } }
To hide stars based on moves
To hide stars based on moves