fixed messaging not working. readPacket function wasn't reading ints right