Fixed null pointer problem in ChessViewBoard.
Tested castling on GUI... works fine