position: fix a bug that was allowing the king to castle out of check