Fixed the animation function, looks a lot better. Structured much better. Room for improvement but good enough to move on