public void draw (int size, Graphics graphics)
	{
		if(status == NEXT)
			graphics.setColor(Color.red);
		else if(status == PREV)
			graphics.setColor(Color.blue);
		else if(status == CURR)
			graphics.setColor(Color.green);
		else
			graphics.setColor(cellColor);
		
		graphics.fillRect((x + 1) * size, (y + 1) * size, size, size);

		graphics.setColor(Color.black);
		if(algorithm == null)
			algorithm = grid.getAlgorithm();
		else
		{
			algorithm.drawState(graphics, size, value, x, y, -50);
			graphics.setColor(Color.red);
			if(algorithm.toString().equals("Sarsa"))
				algorithm.drawProbs(graphics, size, action.rewards, x, y, 0);
			else
				algorithm.drawProbs(graphics, size, action.probs, x, y, 0);
		}
	}