This is one of a collection programs I wrote in different languages that do the same thing the same way. Scratch: (Code found here) VB: http://pastebin.com/68WVTnY8 C#: http://pastebin.com/EtaCGDb9 Python: http://pastebin.com/6P6nTm0M