Do BGGET only when both X and Y are multiples of 16 as follows. IF(X MOD 16)==0 && (Y MOD 16)==0 THEN IF BGGET... ENDIF