private void SomeoneWon() { string paintCells = board.GetPaintCells(); string first = paintCells.ElementAt(0) + "" + paintCells.ElementAt(1); string second = paintCells.ElementAt(2) + "" + paintCells.ElementAt(3); string third = paintCells.ElementAt(4) + "" + paintCells.ElementAt(5); PaintCells(first, second, third); button1.Enabled = false; button2.Enabled = false; button3.Enabled = false; button4.Enabled = false; button5.Enabled = false; button6.Enabled = false; button7.Enabled = false; button8.Enabled = false; button9.Enabled = false; label6.Visible = false; }