Level transitions; formatted code with Java Conventions