big syntax error in server

ended  up moving function calls to after the functions they referred to.
thats why i love java