LED doesnt turn ON (or OFF)

but I have changed LED to be 6

So have you got an external LED then?

Why are you using code that is writing in such a machine code way? There are much easier ways to achieve the same effect. As a learning exercise that code is useless.