rewrite of the game routing