Replace extensive usage of ListIterators in Level.java with foreach loops