Fix bug with castleing and moves