You have too many "}"s. At the end of void loop() where there is
}
}
delete the last one and it should work. The { and } need to be balanced and with the extra one it is not and it ends the program before defining updateShiftRegister which is why the error.
Peter