added standing state and direction change while running