Implemented smooth character movement