Fix problems while drawing nested for loop and incrementing the level of the soil