public void changeCellType(int x, int y, CellType selectedMode, boolean delete) {
		Cell cell = getCell(x, y);
		switch (selectedMode) {
			case FOOD:
				if (cell.getType().equals(CellType.FOOD)) {
					cell.setType(CellType.SPACE);
				} else {
					cell.setType(CellType.FOOD);
				}
				break;
			case ANTHILL:
				Cell antHill = getAnthillCell();
				if (antHill != null) {
					antHill.setType(CellType.SPACE);
				}
				cell.setType(CellType.ANTHILL);
				break;
			case BARRIER:
				CellType type = cell.getType();
				if (type.equals(CellType.SPACE)) {
					cell.setType(CellType.BARRIER);
				} else if (delete && type.equals(CellType.BARRIER)) {
					cell.setType(CellType.SPACE);
				}
				break;
			default:
		}
	}