public void Render(Graphics g) { foreach (ObstacleEntity obstacleEntity in Obstacles) { obstacleEntity.Render(g); } if (GodMode) { graph.Render(g); } foreach (BaseGameEntity baseGameEntity in Entities) { baseGameEntity.Render(g); } }