smooth moving of player sprite