Dialog system for 2D game with NPCs