First refactor to playfair_table