changes for requirement 8
i.e check is the King is in Check
and other changes to keep consistent