Optimize

Add ArrayList<Integer> state to each converting class.
This makes it so an arraylist is only made once per instance, rather
than each time the world calls convert().
Courtesy of Adit Sinha