Refactored is_game_over() for better clarity. Added some documentation.