Added bounding box check for masks

Hazard zones shouldn't work weirdly now