injecting console ui to the game as a function