If you're stuck near the end of B-Cubed, the code for level 50 is 5642268. Punch that in and you should be able to clear the stage and move on.