Update machine.js

Now has the capability to mark nodes as accept/reject/start