Adds a game-ending alert, improves syntax