Trying to make the NPC's move in the right way