Castling in heuristic and edits to gui