updated MachinePlayer.java