Minor A* code cleanup, resizable layered canvas