Adventure1 assignment for Java