illegal castle move fix