Improvements on range-finding algorithm. Edge case does not work at certain points because the tiles are not aligned properly.
Merge pull request #5 from jpgg/newRangeAlgorithm

Improvements on range-finding algorithm. Edge case does not work at cert...