Example ruby solution for langton's ant