Solving multiple shapes display order with new function addOrdered