public class cell{ int row, col; boolean isSnakeCell = false; boolean isEmptyCell = false; boolean isFoodCell = false; public cell(int row, int col){ isEmptyCell = true; this.row = row; this.col = col; } public void setSnakeCell(boolean cond){ isSnakeCell = cond; isEmptyCell = false; isFoodCell = false; } public void setEmptyCell(boolean cond){ isEmptyCell = cond; isSnakeCell = false; isFoodCell = false; } public void setFoodCell(boolean cond){ isFoodCell = cond; isSnakeCell = false; isEmptyCell = false; } public int getRow(){ return row; } public int getCol(){ return col; } }