// puts back a piece the player placed, if the piece is placed
    void PutBackPiece()
    {
        GameObject g = gameObjectBoard[selectedRow, selectedCol];

        if (g.GetComponent <Person>().isPlaced)
        {
            Person p = g.GetComponent <Person>();


            int pieceType = -1;
            if (p is Blogger)
            {
                pieceType = 2;
            }
            else if (p is Grandma)
            {
                pieceType = 3;
            }
            else if (p is BestFriend)
            {
                pieceType = 4;
            }

            if (pieceType == -1)
            {
                return;
            }

            playerPieces.Add(pieceType);
            dropDownMenu.AddOneType(pieceType);

            // remove the piece from the board
            GameObject b = gridBoard[selectedRow, selectedCol];
            Destroy(g.GetComponent <Person>());
            Destroy(g.GetComponent <Collider>());
            Destroy(g);
            Destroy(b.GetComponent <Person>());
            Destroy(b.GetComponent <Collider>());
            Destroy(b);


            // add a white space
            AddPieceToBoard(0, selectedRow, selectedCol);

            // turn off the menu
            TurnOffPieceMenu();

            audios[2].Play();
        }
    }