added endGame function, will begin reset function