public void capture()
	{

		processGroups();
		for (int i = groups.size() - 1; i > -1; i--)
		{
			Group h = groups.get(i);
			if ((h.pieces.size() > 0 && h.pieces.toArray(new Piece[0])[0].team != current) && h.numOfLiberties() == 0)
			{
				for (Piece p : h.pieces)
				{
					p.where.piece = null;
				}
				if (current)
				{
					blackScore += h.pieces.size() * .5;
				}
				else
					whiteScore += h.pieces.size() * .5;
				// add h.pieces.size()*.5 to other side
			}
		}
		// This checks to see if any like colored stones are touching and if so, it adds them to a
		// group
		processGroups();
		for (int i = groups.size() - 1; i > -1; i--)
		{
			Group h = groups.get(i);
			if ((h.pieces.size() > 0 && h.pieces.toArray(new Piece[0])[0].team == current) && h.numOfLiberties() == 0)
			{
				for (Piece p : h.pieces)
				{
					p.where.piece = null;
				}
				if (!current)
				{
					blackScore += h.pieces.size() * .5;
				}
				else
					whiteScore += h.pieces.size() * .5;
				// add h.pieces.size()*.5 to other side
			}
		}
		processGroups();
	}