The last commit was rotten; fixed the issues
Made state of the buttons visible in the view
The creation of the new phase takes into account the state of the buttons
The action now takes the sensor of the action as an argument