The key word is "opportunity" here.You need to define the rules exactly.You already have some code that is very close to being runnable. Whathappens when you run it? What does/doesn't it do that you want to do?