import java.util.LinkedList;

public class Prison {

private LinkedList cells = new LinkedList();

private LinkedList guards = new LinkedList();

private int prisonWidth, prisonLength;

public int exitX, exitY;

¡@

// CONSTRUCTOR

Prison (int prisonWidth, int prisonLength, int exitX, int exitY) {

this.prisonWidth = prisonWidth;

this.prisonLength = prisonLength;

this.exitX = exitX;

this.exitY = exitY;

}

¡@

// METHODS

public void addCell (Cell newCell) {

// add a new cell into prison

cells.addFirst(newCell);

}

public void addGuard (Guard newGuard) {

// add a new guard into prison

}

}

¡@