added test for isValidMoveTarget