Jump over your opponents. This will cost them one life. You have to grab all the coloured keys you need to open the doors and get to the flag, but you also have to make sure nobody dies. Take a good look at how many lives each opponent has left before you start jumping over them. Each opponents needs to have at least 1 remaining life.