A php implementation of Ball and Chain by Benjamin Donelly