added singleplayer debug mode