public void run(){
		long lastTime = System.nanoTime();
		double ns = 1000000000 / 60;
		double delta = 0;
		long timer = System.currentTimeMillis();
		while(running){
			long now = System.nanoTime();
			delta += (now - lastTime) / ns;
			lastTime = now;

			while(delta >= 1){
				update();
				delta--;
				ups++;
			}
			fps++;
			draw();
			if(System.currentTimeMillis() - 1000 >= timer){
				timer += 1000;
				System.out.println(fps + " || " + ups);
				ups = fps = 0;
			}
		}
	}