A* return all the needed info of steps to resolve the problem in a JSON, improvement the way in that some objects get info from the data base