Using impartial games and greedy algorithms to generate codes with fixed distance | Synapse