Text adventure in Java