Refactored robot inventory setup for arbitrary inventory size. Still buggy, do not merge.