AI attempt: 2

works as a fine loop using the npc function "idleWithWalk" and loops
with recursion controlled by a global bool