Changed the player class into a more generic npc class.