public int[] getGoodStuff(LevelEntity[][] level){
		int[] goodArray = new int[level.length];
		Arrays.fill(goodArray, Integer.MAX_VALUE);
		int distanceFromGround = level.length;

		for (int xx = 0; xx < level.length; xx++){
			for (int yy = 0; yy < level[0].length; yy++){
				if (level[xx][yy] == LevelEntity.Coin || level[xx][yy] == LevelEntity.CoinBlock || level[xx][yy] == LevelEntity.PowerUp){
					distanceFromGround = 0;
					int reverseDistanceFromGround = 1;
					for (int nx = xx-1; nx >= 0; nx--){
						if (goodArray[xx] > reverseDistanceFromGround){
							goodArray[xx] = reverseDistanceFromGround;
						}
						else {
							break;
						}
						reverseDistanceFromGround++;
					}
					break;
				}
			}
			goodArray[xx] = distanceFromGround;
			distanceFromGround++;
		}
		return goodArray;
	}