Update displayStats

Turning display stats into a function that can be declared and run within the master.