raytracing

updated heuristic in A*, changed some orders of events, increased
performance/got rid of old code