In his book A Theory of Fun for Game Design, Raph Koster argues that the main purpose of games is to generate fun for the player. He defines fun as the process of learning something new and challenging. Games, according to Koster, should be designed to teach players something new and help them overcome challenges in a fun and engaging way. By providing players with an enjoyable experience, games can not only entertain but also educate and motivate.