private Timer()
    {
        timer = new javax.swing.Timer(TIMER_DELAY, new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                int time = timeManager.getTime();

                timeManager.setTime(time + TIMER_DELAY);

                if (!warnPlayed && time > WARN_TIME)
                {
                    soundManager.playWarnSound();
                    warnPlayed = true;
                }

                if (time > OVER_TIME)
                {
                    soundManager.playOverSound();
                    StateManager.getInstance().setState(new EndRound());

                    Timer.getInstance().stop();
                    timeManager.setTime(OVER_TIME);
                }
            }
        });
    }