added a reset game function