Refactoring is_game_over() method using all() inside of it.