def actions(self, state):
        'actions are index where we can make a move'
        actions = []
        for index, char in enumerate(state):
            if char == '_':
                actions.append(index)
        return actions
def actions ( self , state ) : actions = [ ] for index , char in enumerate ( state ) : if char == '_' : actions . append ( index ) return actions
actions are index where we can make a move