working on rendering the player with correct animation speed