Added dynamic drawing order

Drawing order now changes based on the following priorities: entity
height, then entity y position.  Based on the drawing order, entities
are sorted via insertion sort.