added A-star algorithm with map implementation