Code cleanup and added functions for printing player data.