Add game-over function, check for game-over before making a move