Really bad code to run a draughts playing robot