
/**
 * Write a description of class arrayBoard here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class arrayBoard
{
    public arrayBoard()
    {
        Space [][] arrayBoard = new Space [3][3];
    }
    
    public void placePiece(Space clickedSpace, int playerNum)
    {
        if ((!clickedSpace.isBlank()) && (clickedSpace.getPlayer() != 0))
        {
            clickedSpace.setPlayer(playerNum);
            clickedSpace.setBlank(false);
        }
    }
    
    
}

@@ -504,10 +504,1265 @@
   %0A    %0A
+    +     public boolean checkWin ()%0A +    %7B%0A +        boolean win = false;%0A +%0A +        // check rows and columns%0A +        for (int i=0; i%3C3; i++) %7B%0A +            if ((arrayBoard%5Bi%5D%5B1%5D.getPlayer()).equals(arrayBoard%5Bi%5D%5B0%5D.getPlayer())) %7B%0A +                if ((arrayBoard %5Bi%5D%5B2%5D.getPlayer()).equals(arrayBoard%5Bi%5D%5B0%5D.getPlayer()))%7B%0A +                    win = true;%0A +                %7D%0A +            %7D%0A +        %7D%0A +%0A +        for (int j=0; j%3C3; j++) %7B%0A +            if ((arrayBoard%5B1%5D%5Bj%5D.getPlayer()).equals(arrayBoard%5B0%5D%5Bj%5D.getPlayer())) %7B%0A +                if ((arrayBoard %5B2%5D%5Bj%5D.getPlayer()).equals(arrayBoard%5B0%5D%5Bj%5D.getPlayer()))%7B%0A +                    win = true;%0A +                %7D%0A +            %7D%0A +        %7D%0A +%0A +        //check diag%0A +        if ((arrayBoard%5B1%5D%5B1%5D.getPlayer()).equals(arrayBoard%5B0%5D%5B0%5D.getPlayer())) %7B%0A +            if ((arrayBoard %5B1%5D%5B1%5D.getPlayer()).equals(arrayBoard%5B2%5D%5B2%5D.getPlayer()))%7B%0A +                win = true;%0A +            %7D%0A +        %7D%0A +        if ((arrayBoard%5B0%5D%5B2%5D.getPlayer()).equals(arrayBoard%5B1%5D%5B1%5D.getPlayer())) %7B%0A +            if ((arrayBoard %5B2%5D%5B0%5D.getPlayer()).equals(arrayBoard%5B1%5D%5B1%5D.getPlayer()))%7B%0A +                win = true;%0A +            %7D%0A +        %7D%0A +        return win;%0A +    %7D%0A +    %0A    %0A    %0A
 %7D%0A

Update arrayBoard.java