Done a reasonable implementation of block detection. Still need to add a few things (e.g. dots only allowed to be in corners) and add more constants as calibration sliders.