Changed slot detection

Slot detection had a bug where it'd only detect slots up until a slot
that was not occupied, vs, going through all slots, empty or not.