public Board generateRandom(int size, double limitProb)
	{
		AState[][] map = new AState[size][size];
		map[0][0] = new AState(0,0, false, true, false);
		map[size-1][size-1] = new AState(size-1, size-1, false, false, true);
		
		for(int i = 0; i < size; i++)
		{
			for(int j = 0; j < size; j++)
			{
				if(i == 0 && j == 0)
					continue;
				else if(i == size - 1 && j == size -1)
					continue;
				
				double prob = Math.random();
				map[i][j] = new AState(j, i, prob <= limitProb, false, false);
			}
		}
		
		return new Board(map);
	}