I currently don't really know how i would implement an undo function since i'm very new to JS, i might be able to add one step at a later date.