What errors do you get now in your browser and terminal? It will compile fine with the unused warnings, donât worry about those. If things stopped working when you added more code then remove those parts temporarily and test to see where the issue lies.
You can also look at the final code here to compare with yours.