added rules for number of segments removed, when to switch levels