Haha yeah, this is a combination of code originally written by @amnona and comments on that code from Daniel :)