inital stuff on the algorithm, A-star