castling and can_move? methods

The castling and the can_move? methods are now working. So we will be
able to determine the most frequent ending condition.