A* script now ready for debugging