adding color component to checkAnswer