enablePlayerToggle broken out to separate function