Added automatic save, fixed FPS bug that was causing glitch every now and then