Added checkWinner method