public static void PlayTestMode() { TestMode test; if (progress.getLevel() == 0) { test = new TestModeEasy(); test.RunTest(); } if (progress.getLevel() == 1) { test = new TestModeMedium(); test.RunTest(); } if (progress.getLevel() == 2) { test = new TestModeHard(); test.RunTest(); } }