Modified code for using __getitem__ map function.
Cranes instructions are more atomic now.

Now it works as it should.