// moving the implementations for making the draw list and rendering into a new file.