Added full A* implementation within the TileMap class.