Good way to implement a chess-like board system?

I thought of that, but I was worried it might not work if different pieces have different collision settings or move in unique patterns, like a knight in chess.