everything working except ending game after there is a winner