compiler says it needs legalMove implementation.