modified code to show player names at page load