Avoid running into walls, your own tail, and that of your opponent