Expected Unqualified-ID Before 'do'(and 'while') I am getting the error "error: expected unqualified-id before 'do'" multiple times for every do{
}while(); loop I have... Any help?

Pastebin:http://pastebin.com/DubuAEUs
The do whiles are outside of the setup() or loop(), so they won't work. 

I would suggest doing a simple C/C++ tutorial like this one to get up to speed with how things work.