The controller program for a KotH challenge I made on codegolf.stackexchange.com.