expanding the proximity detector

Working on a gui, so this could take a wile of me messing about to work
well and look good