Implement some FEN formatting code