@Override
		public void mouseDragged(MouseEvent event) {
			if (draw && generalTab.isDrawOn() && generalTab.getSelectedMode().equals(CellType.BARRIER)) {
				int x = (event.getX() / Variables.POINT_SIZE);
				int y = (event.getY() / Variables.POINT_SIZE);
				if (x >= Variables.START_DISPLAY && x <= Variables.END_DISPLAY && y >= Variables.START_DISPLAY && y <= Variables.END_DISPLAY) {
					grid.changeCellType(x, y, generalTab.getSelectedMode(), false);
					repaint();
				}
			}
		}