public void setPaused(boolean paused)
    {
        if (rp != null && rp.isGameOver())
        {
            gameIsPaused = false;
            return;
        }
        gameIsPaused = paused;
        if (rp != null && rp.getMenu() != null)
            rp.getMenu().popMenu(gameIsPaused);
    }