@@ -0,0 +1,1203 @@
+/**%0A *%0A * @author Ryan J. Marcotte%0A */%0A%0Apackage game;%0A%0Apublic class Square implements Comparable%3CSquare%3E%0A%7B%0A    final int NUM_NEIGHBORS = 8;%0A    int intLocation;%0A    Square neighbors%5B%5D = new Square%5BNUM_NEIGHBORS%5D;%0A    ChessPiece occupant;%0A%0A    public Square(int intLocation)%0A    %7B%0A        this.intLocation = intLocation;%0A        occupant = null;%0A    %7D%0A%0A    @Override%0A    public int compareTo(Square otherSquare)%0A    %7B%0A        int otherIntLocation = otherSquare.getIntLocation();%0A%0A        if (intLocation %3C otherIntLocation)%0A            return -1;%0A        else if (intLocation == otherIntLocation)%0A            return 0;%0A        else%0A            return 1;%0A    %7D%0A%0A    protected Square getNeighbor(int direction)%0A    %7B%0A        return neighbors%5Bdirection%5D;%0A    %7D%0A%0A    protected ChessPiece getOccupant()%0A    %7B%0A        return occupant;%0A    %7D%0A%0A    public int getIntLocation()%0A    %7B%0A        return intLocation;%0A    %7D%0A%0A    public boolean isOccupied()%0A    %7B%0A        return occupant != null;%0A    %7D%0A%0A    protected void setNeighbor(Square neighbor, int direction)%0A    %7B%0A        neighbors%5Bdirection%5D = neighbor;%0A    %7D%0A%0A    protected void setOccupant(ChessPiece occupant)%0A    %7B%0A        this.occupant = occupant;%0A    %7D%0A%7D%0A

add some basic Square functionality