public void Render(Graphics g) { if (paused) { pauseState.Render(g); } else if (gameStates[currentState] != null) { gameStates[currentState].Render(g); } }