Gets squares attacked or defended by a piece on square, given occupied squares.
piece
square
occupied
Gets squares attacked or defended by a
piece
onsquare
, givenoccupied
squares.