Spiral Print Code not working

My code of spiral print is not working I have seen the video several times I cannot figure out what is the problem. Please help me figure out the problem.

see this: