Astar-pathfinding Implementing the Astar pathfinding algorithm to simulate intelligent A.I for a game