Text-based adventure game engine