public void run(){
		gsm = new GameStateManger();
		double delta = 0;
		double ns = 1000000000D / 60D;
		long lastTime = System.nanoTime();
		long timer = System.currentTimeMillis();
		while(running){
			long now = System.nanoTime();
			delta += (now - lastTime) / ns;
			lastTime = now;
			while(delta >= 1){
				delta--;
				update();
				ups++;
			}
			fps++;
			draw();
			if(System.currentTimeMillis() - timer >= 1000){
				timer += 1000;
				System.out.println("FPS - " + fps + "|  UPS - " + ups);
				ups= 0;
				fps = 0;
			}
		}
	}