public void defcalculateProbabijkhkjhlities ()
	 {
		 int x = cell.getX();
		 int y = cell.getY();
		 double[] neighborValues = new double[4];
		 
		 if (y - 1 > 0)
			 neighborValues[0] = grid.get(x, y - 1).value();
		 else
			 neighborValues[0] = 0;
		 if (y + 1 < grid.getMapSize())
			 neighborValues[1] = grid.get(x, y + 1).value();
		 else
			 neighborValues[1] = 0;
		 if (x - 1 > 0)
			 neighborValues[2] = grid.get(x - 1, y).value();
		 else
			 neighborValues[2] = 0;
		 if (x + 1 < grid.getMapSize())
			 neighborValues[3] = grid.get(x + 1, y).value();
		 else
			 neighborValues[3] = 0;
		
		 double norm;
		 if(!allZeroes(neighborValues))
			 norm = normalizer(neighborValues);
		 else 
			 norm = 1;
		 
		 for (int i = 0; i < 4; i++)
		 {
			 probs[i] = neighborValues[i] / norm;
		 }
	 }