check existing piece in the table before put new piece