Turing Complete - Saving Gracefully, My solution (probably not optimal)