added boolean state 0 to make turnaround happen in the app.js file