in reply to Please help
Camerontainium:
I'd first suggest:
This should get you part of the way there. Study up, update your code, and post any further questions you have.
...roboticus
When your only tool is a hammer, all problems look like your thumb.