public void refresh() { String boardId = getParam("editorId"); if (StringUtils.isEmpty(boardId)) { board = BoardFactory.createEmptyBoard(Integer.parseInt(height), Integer.parseInt(width)); pioche = new ArrayList<Cell>(); } else { board = boardService.findBoardById(getUser(), getParam("editorId")); pioche = board.getPioche(); levelName = board.getLevelName(); levelNumber = board.getLevelNumber(); height = board.getHeight(); width = board.getWidth(); } cells = board.getCells(); list = new ArrayList<List<Cell>>(); for (Cell[] cells2 : cells) { List<Cell> l1 = new ArrayList<Cell>(); for (int i = 0; i < cells2.length; i++) { l1.add(cells2[i]); } list.add(l1); } }