Move debug_* functions to game object