Updated Animation.lua to use translate