There's a lot to unpack there. First of all, you do know you can rename your sprites, right? Because otherwise you are gonna get really confused soon about what sprite is what :)
As for the pathfinding, here's a very basic setup that does the trick. You probably want to put the "wandering around" pathfinding into a function. You also probably should avoid to "find path" every tick. You should also know that pathfinding will fail sporadically when the target point happens to be inside a wall, that's why there is the "failed to find path" condition.