Personalized Procedural Content Generation to Minimize Frustration and Boredom Based on Ranking Algorithm