Train agent to navigate through the sidewalk via reinforcement learning