Finally fixed the issue regading the alternation of colours. Credits to the great Eloy Lafuente that is a genius.