public int selectedlv(String txtlv, int dimension) { if (txtlv.Equals("Easy")) { return 50; } else if (txtlv.Equals("Normal")) { return 40; } else if (txtlv.Equals("Hard")) { return 30; } else { return 0; } }