public void move(int direction) {
        boolean temp = this.moveBoolean(direction);
        if (this.moveBoolean(direction) == true) {
            switch (direction) {
                case 2:
                    this.row++;
                    break;
                case 4:
                    this.col--;
                    break;
                case 6:
                    this.col++;
                    break;
                case 8:
                    this.row--;
                    break;
            }
        }
    }