Moved Dialogue drawing code into DefaultRenderer and merged remaining dialogue.ts with original parser.ts into types.ts