codeCorrect is now working correctly, so does the coloring. Change the position of helper function so that they are defined before getting called