Working on Machine Logic

Not stable