Code review of play(), minor refactoring.