In my experience, YouTube has always been very helpful. But it sounds like you didn't move the yarn to the back of the work after you switched colors. If you're knitting, your yarn has to always be in the back. It should only be in the front of you're doing a purl stitch.
Other than that, if you just started knitting, I would highly recommend just starting with one color until you get it down & are comfortable with doing that. Then, add in color. Color work can be quite confusing, even for the experienced knitter.
Just some friendly advice.