generic engine for a text based adventure game