break "handleWin" into separate method