Level 6 code added

If I still understand this mess tomorrow I will be very surprised.
IF/ELSE nightmare.