Code for marble game