Chemical segregation challenge

here is the link to my code. I dont understand what is wrong
link- https://drive.google.com/open?id=1Jh-U2Z_Iw25aabSc-_a4WbKmKNF_Dnzq