moved shadowcasting function to mathematics module
made pathfinding more like A*, but still not complete