Imporved abstraction for Level.java