Rewrote code

doesn't have a save path and im not sure if this version works...