public void actionPerformed(ActionEvent e)
    {
        timer.stop();
        if (lastSecond) {
            lastSecond = false;
            player.playTrack(TrackType.TIMEOUT);
            timer = new Timer(HURRY_UP, this);
            timer.start();
        } else {
            for (Phantom phantom : phantoms) {
                phantom.setIsEatable(false);
            }
        }
    }