adding game_turn module file and refactoring code