I think I messed up what I had going

I don’t know where I messed up but I should have not put in a switch.
Followed the book but ran into problem.