Fixed occupancy bug. Made checks happen first, action later.