Reimplemented the laod chunks method

I know my implementation differ a lot from yours (that I hardly understand)
but it seems to work, so it will make the deal for now.