reorganizing game_logic