Changed method getPiecesAttackingKing to return correct arraylist