I copied this from someone. I made it so the hero has life, the dragon has life, and the dragon attacks. The arrow keys are to move.