Move controller logic from routes and into game_helper