Added movement logic for player