Remove global legalMoveTable variable