Fixed null pointed in AI when assesing castling