implemented a star algorithm and manhattan heuristic