private void incrementTime()
    {
        second++;
        if (second > 59)
        {
            second = 0;
            minute++;
            if (minute > 59)
            {
                minute = 0;
                hour++;
                if ((minute != 0 || second != 0) && hour > 23)
                {
                    hour = 0;
                }
            }
        }
        else if (second == 1 && hour == 24)
        {
            hour = 0;
        }
    }