Elf game code fix