MIPS Simulator in Java