private void GameBegin() { if (board == null) { board = new Piece[8, 8]; } b.SetBoard(); if (piecesimg == null) { piecesimg = new Bitmap(width, hieght); } graphics = Graphics.FromImage(piecesimg); update(); }