public void tableObjectSelectedByCalculator(string id, string side)
    {
        Debug.Log("id = " + id);
        for (int i = 0; i < instantiatedTableActiveGameObjects.Length; i++)
        {
            TableObject activeTableGameObject = instantiatedTableActiveGameObjects[i].GetComponent <TableObject>();

            Debug.Log(i + " " + instantiatedTableActiveGameObjects[i].GetComponent <TableObject>().id);
            if (id.Equals(activeTableGameObject.id))
            {
                Debug.Log(instantiatedTableActiveGameObjects[i].gameObject.name);

                Collected_Objects tempCollectedObject = new Collected_Objects();
                // if (side.Equals(activeTableGameObject.side))
                if (side.Equals(activeTableGameObject.objectPosition))
                {
                    Debug.Log("ATTEMPTS " + activeTableGameObject.attempts);
                    activeTableGameObject.obj_recorded_on_pad     = true;
                    activeTableGameObject.finishedRecordOnAttempt = true;
                    //dbgrabconnection.UpdateCollectedObjectOnPad(int.Parse(activeTableGameObject.id),activeTableGameObject.obj_recorded_on_pad);
                    activeTableGameObject.SetAttempts(activeTableGameObject.attempts++);
                    tempCollectedObject.SetValues(ExperimentParameters.gameplay_id, int.Parse(activeTableGameObject.id), activeTableGameObject.objectPosition, BringLevelToString(int.Parse(activeTableGameObject.level)), activeTableGameObject.obj_recorded_on_pad, false, "", activeTableGameObject.attempts);

                    Debug.Log("tempCollectedObject " + tempCollectedObject.obj_recorded_after_attempt);

                    activeTableGameObject.SetCollectedObject(tempCollectedObject);
                    //  activeTableGameObject.SetAttempts(1); //first try and succeeded

                    // dbgrabconnection.CreateCollectedObjectsRow(tempCollectedObject);
                    activeTableGameObject.canvas.GetChild(0).GetComponent <Image>().sprite             = Resources.Load <Sprite>("Textures/UiSprites/golden_star");
                    activeTableGameObject.canvas.GetChild(0).GetChild(0).GetComponent <Text>().enabled = false;
                }

                if (!activeTableGameObject.finishedRecordOnAttempt)
                {
                    activeTableGameObject.SetAttempts(activeTableGameObject.attempts++);
                }
            }
        }
    }