made A* quicker, heuristic value weighting for optimal vs speed