Code:
for (i= !!! 1 !!!; i<256; i++) 
for (i= !!! 0 !!!; i<256; i++)
You've reintroduced the "not starting at zero" bug.