Changed chatbox to appear automatically when text is written to it, tried to fix a race condition in main program (changeMap followed by runEvent).