Engine for text quest games