better castle handling, ready for integration into legalmoves