Created an AckManager class that keeps track of acking and resending msgs