Change every function into an object. TODO: change Redo/Undo to a function that all modes can make itself. BROKEN: Redo/Undo (0% repair).