Updated gameOver function with no more available moves logic