It was one very good movie from 1995 with Robin Williams.
An enchanted game that can transform you into a monkey, invoke mosquitoes big as a dove or lock you out in prison for 40 years.
Jumanji was the endgame. When you beat all the bad stuff on the map and roll a dice which makes you enter the center square of the map.
Then all the bad spells on you get dispelled and you return to your former self.