Added a previous message field to each message so that messages can be displayed more clearly. (By this I mean that if a message has the same mode as its predecessor, then it is unnecessary to display the name of the user that sent the message)