formatted all code and added player animation on drag