Function queenAttacks

Gets squares attacked or defended by a queen on square, given occupied squares.