Immutable map
A* not working