Fixes the tapping issue, as well as makes the visibility algorithm limited in distance (and faster)