// Also check that each piece type is present
const rows = position.split("/");
let pieces = {};
for (let row of rows) {
for (let i = 0; i < row.length; i++) {
// Also check that each piece type is present
const rows = position.split("/");
let pieces = {};
for (let row of rows) {
for (let i = 0; i < row.length; i++) {