// Getters and setters for the next handler
 public void setNext(MessageParser p)
 {
     this.nextHandler = p;
 }
 // Instantiating the message parser
 public MessageParser(MainGrid active_grid)
 {
     this.active_grid = active_grid;
     this.nextHandler = null;
 }