Added the ability to iterate through the states and draw/update/handleEvent the ones that should be drawn over the others.