Fixed some bugs

Doesnt quite work perfectly, the update function doesnt get called or
errors in a try catch sometimes, but otherwise everything is fixed

Netpackets work :DDDD