Add printBoard and printInstr methods which are used in run() method.