this.addMouseListener(new GridMouseAdapter());
this.addMouseMotionListener(new GridMouseMotionAdapter());
this.addKeyListener(new GridKeyAdapter());
this.setBorder(BorderFactory.createLineBorder(Color.black));
currentCell=new Cell(-1,-1,Resource.CELLSTATE_UNDEFINED);
previousCell=new Cell(-1,-1,Resource.CELLSTATE_UNDEFINED);
currentRow=-1;
currentCol=-1;
solvingColors=new Color[8];
settingColors=new Color[8];