fixed some bugs in the move generator