Found better way of looping animations and cleaned up unessecary code.