client: move to casting for all server text, reorder functions
client: move to casting for all server text, reorder functions

plastic-ocean/cis432-project-1,plastic-ocean/cis432-project-1,plastic-ocean/cis432-project-1