Added initializeWithPieces to help write test cases that are easier to follow, visually.