Worked out command system for textadventure example