changed agent_array to cubby_array (which is what it should've been the whole time)