More fixes
Moved castling logic
Merge branch 'dev' of https://github.com/pdigre/TheChessProject into dev