imported my old astar code, using some new structs, etc. I'm sure it doesnt work still ,though