So maybe there was a subconscious plan to get in prison after he prepared everything. Or maybe just a "insurance". Or maybe indeed a bigger plan, mass breakout, .. or having all those options. Being in prison shaped him. He tried to control it (one of his quotes are "placing the kits was therapeutic"). Or he was indeed just really insane and orchestrated a plot/game setting like in D&D. Might be a mix.