tweaked isDefended functions
it is now known when king is in check