change draw for-loops: draw each layer on top of the previous