More debug. Changed letter representation - it is now an array of inputs, and only one of them is set to 1.