Fixed InvalidMoveException and wrote skeleton code for MachinePlayer.java