Compile errors fixed except for networking stuff