public void registerTick() {
		// count the seconds that have passed
	    lastTime = curTime;
	    curTime = System.currentTimeMillis();
	    totalTime += curTime - lastTime;
	    if( totalTime > 1000 ) {
	    	totalTime -= 1000;
	    		seconds++;
	    		if(seconds >= 60) {
	    			seconds -= 60;
	    			minutes++;
					if(minutes >= 60) {
						minutes -= 60;
						hours++;
					}
	    		}
	         } 
	}