Refactored white/black piece creation to reduce duplication