Made linked list for displaying message list.

Just outputs same message over and over again because of some bug.