Added logic for game status and endgame checks