Added statemachine implementation from group Golf