@Override
	public void run() {
		while(true){
			
			try{
				if(game.getScreenFactory().getCurrentScreen()!=null)
					game.getScreenFactory().getCurrentScreen().onUpdate();
				Thread.sleep(10);
			}
			catch(Exception exp){
				
				exp.printStackTrace();
			}
			
		}
	}