change alot of NPC move function, code for exit door and win-lose situation