pathfinding, refactoring and adding sprites