Added UDP code. Works but the java server udp is supper slow and laggy.