public void run() {
		lastTime = System.nanoTime();
		timer = System.currentTimeMillis();
		while(running) {
			now = System.nanoTime();
			delta += (now - lastTime)/fps;
			lastTime = now;
			RunnableObject.emptyQueue();
			while(delta >= 1) {
				if(GameState.gameRunning)
					PlatformControls.newPlatform();
				control.update(); //To update the controls
				RunnableObject.updateObjects(); //To update the objects
				delta --;
			}
			updates ++;
			if(readyToDraw)
				screen.renderScreen(); //Render the screen
			
			if(System.currentTimeMillis() - timer > 1000) {
				timer += 1000;
				frames = updates;
				updates = 0;
			}
		}
	}