Small change to mastermine

Simplified stateFunction ()