Made improvements to tile/sprite layering

Modified how sprites and tiles are sorted to allow them to be draw
properly. Tiles that are meant to be above ground will need to be broken
up into separate layers. The sorting changes now sort the tiles and
sprites by both their layer and their bottom y coordinate.