private boolean check(Gridspot from, Gridspot to)
	{
		if( a.getGridSpot(from.getXIndex()-1, from.getYIndex()) != null && a.getGridSpot(from.getXIndex()-1, from.getYIndex()) == to)
		{
			return true;
		}
		else if( a.getGridSpot(from.getXIndex()+1, from.getYIndex()) != null && a.getGridSpot(from.getXIndex()+1, from.getYIndex()) == to)
		{
			return true;
		}
		else if( a.getGridSpot(from.getXIndex(), from.getYIndex()+1) != null && a.getGridSpot(from.getXIndex(), from.getYIndex()+1) == to)
		{
			return true;
		}
		else if( a.getGridSpot(from.getXIndex(), from.getYIndex()-1) != null && a.getGridSpot(from.getXIndex(), from.getYIndex()-1) == to)
		{
			return true;
		}
		else
		return false;
	}