Bugfixes for castling flags not being removed on makemove, and not being added back on unmakemove