public void run() {
		try {
			while(oceanMove){
				ocean.move();
				oceanArea.repaint();
				t.sleep(30); //80
				synchronized(this) {
					while(!oceanMove){
						wait();
					}
				}
			}
		}
		catch (InterruptedException e){
			System.out.println("Thread" + threadName);
		}
	}