Modified the changeState() method to use the Machine id field instead of
taking an integer input.  Everywhere the method is called, we removed
the input. All tests pass.