package com.meta1203.ChessPlayer;

import java.util.List;

public class CalculateMovesThread extends Thread {
	private Turn originTurn;
	
	public CalculateMovesThread(Turn t) {
		originTurn = t;
	}
	
	@Override
	public void run() {
		List<Move> moves = originTurn.getBoard().getMoves(originTurn);
		for (Move x : moves) {
			Main.logger.info(x.toString());
			originTurn.addChild(originTurn.getBoard().executeMove(x));
		}
	}
}

@@ -90,22 +90,27 @@
 ead 
-extends Thread
+implements Runnable
  %7B%0A%09
@@ -320,16 +320,149 @@
 oves) %7B%0A
+%09%09%09// I don't know enough about the thread safety of the Java logger, so I'm not taking any chances%0A%09%09%09synchronized (Main.logger) %7B%0A%09
 %09%09%09Main.
@@ -488,16 +488,21 @@
 ing());%0A
+%09%09%09%7D%0A
 %09%09%09origi

Change from a Thread to a Runnable for use in an ExecutorService