You edited your post while I was typing.
But again, you have the same problem.
On line 34, you are ending your echo with a double quote, but starting it with a single quote. Because of that, you are screwing up your next 2 functions. Make sure to look at where the colours change.
change line 34 to this:
Race Change
';