public int Ydiff(int action) { if (action == AUp) return -1; else if (action == ADown) return 1; return 0; }