restructurating project and implementing UDP connection