Source code for HorseBot