refactoring play again logic