moved isMoveValidOnBoard to board class