Added scrolling functionality for chat window
Converted messages from fixed array to linked list