Updated runProgram method in MIPSimulator