added working animation
fixed the resource use and logic