Automoton reWrite
Eliminated Cores thans to @flarehayr 's idea