public void commit(){
		Point p = GUI.getMousePosition();

		if(GridWorldLife.brush){
			Location l = GUI.panel.locationForPoint(p);
			
			if((prevLoc != null && !prevLoc.equals(l)) || prevSize != GridWorldLife.brushSize){
				stroke(l, GridWorldLife.brushSize);
				prevLoc = l;
				prevSize = GridWorldLife.brushSize;
			}
		}
	}