Implemented walking feature for player