Implementation of Server is pretty much done, now implementing the packet callback function