private void flag() {
        Rules r = Minesweeper.getInstance().getRules();
        Flag currentFlag = r.getGameboard().getState(i, j).getFlag();

        if (currentFlag == AbstractState.HOLLOW_FLAG) {
            r.flag(i, j, AbstractState.MINE_FLAG);

        } else if (currentFlag == AbstractState.MINE_FLAG) {
            r.flag(i, j, AbstractState.TEMP_FLAG);

        } else if (currentFlag == AbstractState.TEMP_FLAG) {
            r.flag(i, j, AbstractState.HOLLOW_FLAG);
        }

    }