public int Xdiff(int action) { if (action == ALeft) return -1; else if (action == ARight) return 1; return 0; }