main.js color sensor working

color sensor working now, for most colors