I would say this either belongs in the `setupBoard` function, or perhaps should be in it's own function `setupPieces`.