A module based engine for text games