public ArrayList<Gridspot> findVertices(Gridspot take, Gridspot goal)
	{
		ArrayList<Gridspot> retur = new ArrayList<Gridspot>();
		int x = take.getXIndex(); int y = take.getYIndex();
		
		if (!getG(x+1,y).occupied || getG(x+1,y) == goal )
		{
			retur.add(getG(x+1,y));
		}
		if (!getG(x-1,y).occupied || getG(x-1,y) == goal)
		{
			retur.add(getG(x-1,y));
		}
		if (!getG(x,y+1).occupied || getG(x,y+1) == goal)
		{
			retur.add(getG(x,y+1));
		}
		if (!getG(x,y-1).occupied || getG(x,y-1) == goal)
		{
			retur.add(getG(x,y-1));
		}
		return retur;
	}