cleaned up pile display code