TeamB/src/main/java/utils/Toggle.java
/***
     *
     * @param newState
     * @return returns true if state was just toggled, false if it stayed the same
     */
@param newState
@return returns true if state was just toggled, false if it stayed the same
@param newState @return returns true if state was just toggled false if it stayed the same
public boolean update(boolean newState)
    {
        prev = curr;
        curr = newState;
        if(curr && !prev) 
        {
            state = !state;
            return true; 
        }
        return false;
    }
public boolean update ( boolean newState ) { prev = curr ; curr = newState ; if ( curr && ! prev ) { state = ! state ; return true ; } return false ; }
@param newState
 @return returns true if state was just toggled, false if it stayed the same
@param newState @return returns true if state was just toggled false if it stayed the same
//this means that an entire click has to be performed in order to change the state //this way, the method will only return true if the button was only just toggled on, this denotes a state change