Fix chessboard so it works on odd and even sizes