Added Pile methods
Completed render function for Pile