implemented player animation