I have the following list
a = [[\'-\',\'k\',\'-\',\'x\',\'k\',\'x\',\'-\', \'k\'], [\'k\',\'k\',\'-\',\'x\',\'k\',\'-\',\'-\', \'k\'], [\'k\',\'-\',\'-\