I got this done. I still have a few bugs, and need to clean up the code a little. It currently looks like it was written by honey badgers. I've attached a picture to show what it looks like. Thanks to all who offered advice.