Updated code, added ACK and custom packets (not working)