Text adventure engine in Java