My problem is that program is not reading codes as i intended \"he\" would.
I have
if (hero.getPos() == (6 | 11 | 16)) { move = new Object[] {\"Up\",
boolean theyAretheSame = num1 == num2 ? (num1 == num3 ? true:false):false;
I must admit I haven't checked this but the logic looks correct.