one elf game coding by java