Choose-you-own-adventure text game engine in PHP