moved npc controls to Npc class