package cellsociety_team08;

import java.util.List;
import java.util.Stack;

public class Cell {
	
	public boolean isEmpty = false;
	private List<State> myHistory = new Stack<State>();
	private int[] myLocation; //This is the replacement for patch (I think...)
	
	public Cell(State s, int[] location) {
		((Stack<State>) myHistory).push(s); //Can I just make this add???
		myLocation = location;
	}
	
	public void remove() {
		isEmpty = true;
		myHistory.clear();
	}
	
	public State getState() {
		return ((Stack<State>) myHistory).peek();
	}
	
	public List<State> getHistory() {
		return myHistory;
	}
	
	public void setLocation(int[] location) {
		myLocation = location;
	}
	
	public void setState(State s) {
		if (s == null) remove();
		((Stack<State>) myHistory).push(s);
	}
	
	public int[] getLocation() {
		return myLocation;
	}

}

@@ -70,16 +70,113 @@
 Stack;%0A%0A
+import javafx.scene.Node;%0Aimport javafx.scene.paint.Color;%0Aimport javafx.scene.shape.Rectangle;%0A%0A
 public c
@@ -356,48 +356,444 @@
 .)%0A%09
-%0A%09public Cell(State s, int%5B%5D location) %7B
+private int mySize;%0A%09public Node myNode;%0A%09public Color myColor;%0A%09public Rectangle myRectangle;%0A%09%0A%09public Cell(State s, int%5B%5D location, int size) %7B%0A%09%09%0A%09%09//This is sortof ugly but you said you hadn't implemented size or %0A%09%09double convertedSize = size;%0A%09%09double doubleX = location%5B0%5D;%0A%09%09double doubleY = location%5B1%5D;%0A%09%09myRectangle = new Rectangle(doubleX, doubleY, convertedSize, convertedSize);%0A%09%09myNode = myRectangle;%0A%09%09mySize = size;%0A%09%09
 %0A%09%09(
@@ -830,38 +830,8 @@
 (s);
- //Can I just make this add???
 %0A%09%09m
@@ -844,32 +844,35 @@
 ion = location;%0A
+%09%09%0A
 %09%7D%0A%09%0A%09public voi
@@ -920,32 +920,137 @@
 y.clear();%0A%09%7D%0A%09%0A
+%09//new method%0A%09public void setColor(Color color) %7B%0A%09%09myRectangle.setFill(color);%0A%09%09myColor = color;%0A%09%7D%0A%09%0A
 %09public State ge
@@ -1237,16 +1237,19 @@
 cation;%0A
+%09%09%0A
 %09%7D%0A%09%0A%09pu

Update Cell.java