For everything to work correctly you have to press the green flag at the beginning. Use the arrow keys to move the ball. If you manage to get to the end and you restart (by hitting the green flag), but the little box still says winner, hit the green flag a second time and it will fully reset.
just made it look neater and added music the rest is superkjb's