added npc rendering logic for level; fixed npc sprite; added base
factory for npc; other small fixes;