private void pauseGameThread(boolean pause){
		synchronized(gthread){
			try {
				if (pause) gthread.wait();
				else gthread.notify();
			} catch (InterruptedException ex) {
				System.out.println("Failed to pause/start gthread!!!");
			}
		}
	}