changed the standard z position sorting of the sprites