If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Mario just turned himself into a box so it is easier for him to move around. Help Mario reach the red flags in the box form. There are many traps and puzzle on the way. use your skill to pass all the level by helping Mario reach the flag.