Simple A* implementation of 8 box scenario