Function kingAttacks

Gets squares attacked or defended by a king on square.