add parameter for third state for controller: coffee_state for saving state for coffee needed