int word[] = {
0,0,0,0,0,0,0,0,0,0,0,0}; //temp storage for reversing bits in a word (for greyscale setting)
word is a reserved word. You'll need to rename that array.
beginSerial(9600); //in case of debugging
Needs replacing with:
Serial.begin(9600); //in case of debugging