Extracted MovesAreEqual, Added Legel mode check to AI Unit Test