Move your mouse to move the hoop into the basketballs. If you hit the bomb, you loose. If you miss 10 times you loose. You may have to hit the green flag twice.
Credits to @shruti, I used some script, you should check him out.