UP && line < 1) toup() else if (cmd == LEFT && pos < 1) toleft() else if (cmd == RIGHT && pos < 80) toright(); これより if (cmd == DOWN) todown() else if (cmd == UP && line < 1) toup() else if (cmd == LEFT && pos < 1) toleft() else if (cmd == RIGHT && pos < 80) toright();