Borders, Layer Mask, Raycasting, Code Cleanup...

Borders are added as a different object and are excluded from
pathfinding.
Tiles are put into a seperate layer.
Raycasting is done with layermask in order to exclude other objects from
being affected.
Unnecessary code removed.