Your move conditions are out on their own running every tick, it will always move to somewhere. You need better conditions, maybe you want to add a variable=1 for movement to the move conditions, and if you touch an object you should move to then set this variable to 1, and for ones you don't want to move to the variable would remain at 0 and not move.