Devin's code for reset game