Link to the actual code 

http://fightcodegame.com/robots/update/34145/