I need help with a little code entry pad.

the first bit should be two i see, the third on is just because attempt has one element, if it had 2 id just have to change the x<, and the second bit was wrong :L