It seem to you you do not have right the if elif coding
if you have only 2 options the cofind is if/else
if you have 3 options the coding is if/elif/else
if you have more it is if / elif /elif /elif…/else
in yout firs code I see
if (ALICE < 8)
elif (ALICE > 0)
but there is no else and new if/elif/else starts…
if (ALICE < 2)
elif (ALICE < 3)
elif (ALICE > 16)
again no else here and new if/elif/else starts
if (ALICE > 12)
elif (ALICE > 11)