Sprites are now drawn in the correct order.