refactoring looping rules code
rules back button takes you back to game