You could take this even further and add triggers to see if your move is legal or not. Or delete row with a conflict when you capture a piece.