detect Random color function not working
line 238