Update logic so that it parses messages and arraylist of items to gui controller