fixed some move generation bugs