did some more work starting to implement castling