Game end support
Game end support
Castling bug fix & testing