Implemented more of getPiecesAttackingKing.