Adding game_rules class and game_over? and moving invalid_move?