Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.

Dependencies:   mbed FXOS8700CQ mbed-rtos

Revision:
33:f7ec806e14b6
Parent:
32:58def659f463
Child:
34:3ddfaa217eca
--- a/main.cpp	Wed May 08 15:14:55 2019 +0000
+++ b/main.cpp	Wed May 08 23:57:04 2019 +0000
@@ -17,42 +17,30 @@
 #include "Game_two.h"
 #include "Game_three.h"
 #include "Exam.h"
-#include "Grad.h"
+#include "Titles.h"
 #include "FXOS8700CQ.h"
 #include "rtos.h"
 
 /////////////// objects ///////////////
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);  // K64F - pwr from 3V3
-Gamepad pad; // Gamepad class
-Score music; // Score class for music files
-Start start; // Start class for choosing starter
-Game_one game_1; // Game_one class for mini game 1
-Game_two game_2; // Game_two class for mini game 2
-Game_three game_3; // Game_three class for mini game 3
-Exam test; // Exam class for exam questions
-Grad grad; // Grad class for graduation credit scene
-Thread thread; // Thread class for running functions in parallel
+Gamepad pad;            // Gamepad class
+Score music;            // Score class for music files
+Start start;            // Start class for choosing starter
+Game_one game_1;        // Game_one class for mini game 1
+Game_two game_2;        // Game_two class for mini game 2
+Game_three game_3;      // Game_three class for mini game 3
+Exam test;              // Exam class for exam questions
+Titles grad;            // Titles class for graduation credit scene
+Thread thread;          // Thread class for running functions in parallel
 // I2C connection for FXOS8700CQ accelerometer/magnetometer
 FXOS8700CQ device(I2C_SDA,I2C_SCL);  // PTE25/PTE24
 
 ///////////// prototypes ///////////////
 void init();
-void welcome();
 int menu();
-void year_one();
 void year_one_set();
-void year_two();
 void year_two_set();
-void year_three();
 void year_three_set();
-void instruction();
-void term_one();
-void term_two();
-void term_three();
-void win();
-void lose();
-void passed();
-void failed();
 void gym();
 
 //Starting states
@@ -65,11 +53,6 @@
     YEAR_1, STARTER, BULBASAUR, SQUIRTLE, CHARMANDER, EXAM, YEAR_2, YEAR_3, GRADUATION
 };
 
-//Enumerate instruction menu from page 1 - 3
-enum Page {
-    PAGE_1, PAGE_2, PAGE_3   
-};
-
 //Global variables
 int score = 0;              // Score to take note of number of missions passed
 int game_1_speed = 0;       // Setting the speed for the objects in Game 1
@@ -101,9 +84,9 @@
 int main(){
     
     // Initialise parameters
-    int fps = 8;  // frames per second
+    int fps = 8;        // frames per second
 
-    init();     // initialise
+    init();             // initialise
     StartStates currentState = TITLE;
     GameStates currentGame = YEAR_1;
     
@@ -113,11 +96,11 @@
             // 1. Display title screen and play title music
             // 2. Proceed to Start screen by pressing start
             
-            welcome();
+            grad.welcome(pad, lcd);
             wait(1.0f/fps);
-            currentState = MENU; // Set currentState to MENU to start up the MENU page
-            currentGame = YEAR_1; // Set currentGame to YEAR_1 so the game starts from the beginning and resets all difficulty parameters
-            end = false; // Reset end parameter to start the Game loop
+            currentState = MENU;        // Set currentState to MENU to start up the MENU page
+            currentGame = YEAR_1;       // Set currentGame to YEAR_1 so the game starts from the beginning and resets all difficulty parameters
+            end = false;                // Reset end parameter to start the Game loop
         break;
         
         case MENU:
@@ -135,8 +118,8 @@
                             // 1. Initiate year 1 screen
                             // 2. Set up the parameters for year 1
                             
-                            year_one(); // Display year title screen
-                            year_one_set(); // Set the difficulties for mini games
+                            grad.year_one(pad, lcd);        // Display year title screen
+                            year_one_set();                 // Set the difficulties for mini games
                             currentGame = STARTER;
                         break;
                         
@@ -145,35 +128,35 @@
                             // 2. Provide description for the mini game and pokemon
                             // 3. Initiate the mini game according to the pokemon being selected
                             
-                            select = 0; // Reset starter selection parameter to 0 position
-                            start.init(pad); // Initialize the Start class
-                            start.starter_draw(lcd); // Draw the start pokemon selection page
+                            select = 0;                     // Reset starter selection parameter to 0 position
+                            start.init(pad);                // Initialize the Start class
+                            start.starter_draw(lcd);        // Draw the start pokemon selection page
                             wait(1.0f/fps);
                             while(pad.check_event(Gamepad::START_PRESSED) == false)
                                 {
                                     start.starter_update(pad);
                                     start.starter_draw(lcd);
                                     if(pad.check_event(Gamepad::A_PRESSED) == true){
-                                        select = start.get_select(start.update_select(pad)); // Set select parameter to determine which starter pokemon is chosen
-                                        start.intro(select, pad, lcd); // Display the description for the pokemon being selected
+                                        select = start.get_select(start.update_select(pad));    // Set select parameter to determine which starter pokemon is chosen
+                                        start.intro(select, pad, lcd);                          // Display the description for the pokemon being selected
                                         pad.init_input();
                                     }
                                     wait(1.0f/fps);
                                 }
                             select = start.get_select(start.update_select(pad));
                             if(select == 1){
-                                music.congrats(pad, lcd, select, year); // Display congratulation screen for choosing the starter pokemon
+                                music.congrats(pad, lcd, select, year);                 // Display congratulation screen for choosing the starter pokemon
                                 while(pad.check_event(Gamepad::A_PRESSED) == false){
-                                    lcd.drawSprite(2,39,9,8,(int*)button_A); // Instruct to press A to continue
+                                    lcd.drawSprite(2,39,9,8,(int*)button_A);            // Instruct to press A to continue
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
-                                game_1.intro(pad, lcd); // Display Game one description page to introduce the player how the game is played
-                                currentGame = SQUIRTLE; // Move to Squirtle's game loop
+                                game_1.intro(pad, lcd);         // Display Game one description page to introduce the player how the game is played
+                                currentGame = SQUIRTLE;         // Move to Squirtle's game loop
                                 pad.init_input();
                             }
                             else if(select == 0){
@@ -183,12 +166,12 @@
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
-                                game_3.intro(pad, lcd); // Display Game three description page to introduce the player how the game is played
-                                currentGame = BULBASAUR; // Move to Bulbasaur's game loop
+                                game_3.intro(pad, lcd);         // Display Game three description page to introduce the player how the game is played
+                                currentGame = BULBASAUR;        // Move to Bulbasaur's game loop
                                 pad.init_input();
                             }
                             else if(select == 2){
@@ -198,12 +181,12 @@
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
-                                game_2.intro(pad, lcd); // Display Game two description page to introduce the player how the game is played
-                                currentGame = CHARMANDER; // Move to Charmander's game loop
+                                game_2.intro(pad, lcd);         // Display Game two description page to introduce the player how the game is played
+                                currentGame = CHARMANDER;       // Move to Charmander's game loop
                                 pad.init_input();
                             }
                         break;
@@ -214,30 +197,30 @@
                             score = 0;
                             while(i < 3){
                                 // Indicate for which term the current game is in
-                                if(i == 0) {term_one();}
-                                else if(i == 1) {term_two();}
-                                else{term_three();}
+                                if(i == 0) {grad.term_one(pad, lcd);}
+                                else if(i == 1) {grad.term_two(pad, lcd);}
+                                else{grad.term_three(pad, lcd);}
                                 int j = 0;
                                 game_3.init_para();
                                 while(j < 5){
                                     // Game loop for 5 rounds
-                                    game_3.init(pad, game_3_set); // Set the ratio between messages vs books according to year
+                                    game_3.init(pad, game_3_set);       // Set the ratio between messages vs books according to year
                                     game_3.render(lcd, game_3_set);
-                                    wait(game_3_time); // Parameter to set the reaction time frame for varying difficulty
+                                    wait(game_3_time);                  // Parameter to set the reaction time frame for varying difficulty
                                     game_3.read_input(pad);
                                     game_3.update(pad, game_3_set);
-                                    j = game_3.get_count(); // Get count for how many rounds the player has played
+                                    j = game_3.get_count();             // Get count for how many rounds the player has played
                                 }
                                 i = i++;
                                 // determine if win condition is met, return score to proceed to EXAM game loop
                                 if(game_3.get_score() >= 4) {
-                                    win();
+                                    grad.win(lcd);
                                     music.win(pad);
                                     wait(0.5);
                                     score++;
                                 }
                                 else {
-                                    lose();
+                                    grad.lose(lcd);
                                     pad.tone(750.0,0.2);
                                     wait(0.5);
                                     pad.tone(750.0,0.2);
@@ -253,10 +236,10 @@
                             score = 0;
                             while(i < 3){
                                 // Indicate for which term the current game is in
-                                if(i == 0) {term_one();}
-                                else if(i == 1) {term_two();}
-                                else{term_three();}
-                                game_1.init(game_1_speed, game_1_cha, game_1_r); // Set the game difficulty by changing speed of objects and coin to block ratio according to year
+                                if(i == 0) {grad.term_one(pad, lcd);}
+                                else if(i == 1) {grad.term_two(pad, lcd);}
+                                else{grad.term_three(pad, lcd);}
+                                game_1.init(game_1_speed, game_1_cha, game_1_r);    // Set the game difficulty by changing speed of objects and coin to block ratio according to year
                                 int j = 0;
                                 while(j < 10){
                                     // Game loop for 10 rounds
@@ -264,18 +247,18 @@
                                     game_1.update(pad, lcd);
                                     game_1.render(lcd, game_1_cha);
                                     wait(1.0f/fps);
-                                    j = game_1.get_count(); // Get count for how many rounds the player has played
+                                    j = game_1.get_count();                         // Get count for how many rounds the player has played
                                 }
                                 i = i++;
                                 // determine if win condition is met, return score to proceed to EXAM game loop
                                 if(game_1.print_scores(lcd) >= 8) {
-                                    win();
+                                    grad.win(lcd);
                                     music.win(pad);
                                     wait(0.5);
                                     score++;
                                 }
                                 else {
-                                    lose();
+                                    grad.lose(lcd);
                                     pad.tone(750.0,0.2);
                                     wait(0.5);
                                     pad.tone(750.0,0.2);
@@ -292,10 +275,10 @@
                             score = 0;
                             while (i < 3) {
                                 // Indicate for which term the current game is in
-                                if(i == 0) {term_one();}
-                                else if(i == 1) {term_two();}
-                                else{term_three();}
-                                game_2.init(game_2_speed, game_2_cha, game_2_r); // Set the game difficulty by changing speed and ratio between YouTube and normal icons according to year
+                                if(i == 0) {grad.term_one(pad, lcd);}
+                                else if(i == 1) {grad.term_two(pad, lcd);}
+                                else{grad.term_three(pad, lcd);}
+                                game_2.init(game_2_speed, game_2_cha, game_2_r);    // Set the game difficulty by changing speed and ratio between YouTube and normal icons according to year
                                 int j = 0;
                                 while(j < 6){
                                     game_2.read_input(device);
@@ -307,13 +290,13 @@
                                 i = i++;
                                 // determine if win condition is met, return score to proceed to EXAM game loop
                                 if(game_2.get_count() == 6) {
-                                    win();
+                                    grad.win(lcd);
                                     music.win(pad);
                                     wait(0.5);
                                     score++;
                                 }
                                 else {
-                                    lose();
+                                    grad.lose(lcd);
                                     pad.tone(750.0,0.2);
                                     wait(0.5);
                                     pad.tone(750.0,0.2);
@@ -349,7 +332,7 @@
                             
                             // Check for number of correct answers to determine if proceed to next year or not
                             if(pass > 2){
-                                passed();
+                                grad.passed(lcd);
                                 music.win(pad);
                                 wait(0.5);
                                 year++;
@@ -358,7 +341,7 @@
                                 else if(year == 3){currentGame = GRADUATION;}
                             }
                             else {
-                                failed();
+                                grad.failed(lcd);
                                 pad.tone(750.0,0.2);
                                 wait(0.5);
                                 pad.tone(750.0,0.2);
@@ -382,43 +365,46 @@
                             // 3. Initiate evolution animation for chosen character
                             // 4. Enter to game loop for chosen character
                             
-                            year_two();
+                            grad.year_two(pad, lcd);
                             year_two_set(); // Set up the parameters for year 2
                             if(select == 1){
-                                music.evolution_music(pad, lcd, select, year); // Play the evolution animation and music for the chosen pokemon
+                                music.evolution_music(pad, lcd, select, year);      // Play the evolution animation and music for the chosen pokemon
                                 while(pad.check_event(Gamepad::A_PRESSED) == false){
-                                    lcd.drawSprite(0,40,8,8,(int*)button_A);
+                                    lcd.drawSprite(2,39,9,8,(int*)button_A);
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
-                                currentGame = SQUIRTLE; // Go back to game loop
+                                currentGame = SQUIRTLE;                             // Go back to game loop
                             }
                             else if(select == 0){
-                                music.evolution_music(pad, lcd, select, year); // Play the evolution animation and music for the chosen pokemon
+                                music.evolution_music(pad, lcd, select, year);      // Play the evolution animation and music for the chosen pokemon
                                 while(pad.check_event(Gamepad::A_PRESSED) == false){
-                                    lcd.drawSprite(0,40,8,8,(int*)button_A);
+                                    lcd.drawSprite(2,39,9,8,(int*)button_A);
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
-                                currentGame = BULBASAUR; // Go back to game loop
+                                currentGame = BULBASAUR;                            // Go back to game loop
                             }
                             else if(select == 2){
-                                music.evolution_music(pad, lcd, select, year); // Play the evolution animation and music for the chosen pokemon
+                                music.evolution_music(pad, lcd, select, year);      // Play the evolution animation and music for the chosen pokemon
                                 while(pad.check_event(Gamepad::A_PRESSED) == false){
-                                    lcd.drawSprite(0,40,8,8,(int*)button_A);
+                                    lcd.drawSprite(2,39,9,8,(int*)button_A);
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
-                                currentGame = CHARMANDER; // Go back to game loop
+                                currentGame = CHARMANDER;                           // Go back to game loop
                             }
                         break;
                         case YEAR_3:
@@ -427,7 +413,7 @@
                             // 3. Initiate evolution animation for chosen character
                             // 4. Enter to game loop for chosen character
                             
-                            year_three();
+                            grad.year_three(pad, lcd);
                             year_three_set();
                             if(select == 1){
                                 music.evolution_music(pad, lcd, select, year);
@@ -436,7 +422,7 @@
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
@@ -449,7 +435,7 @@
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
@@ -462,7 +448,7 @@
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
@@ -480,7 +466,7 @@
                                     lcd.refresh();
                                     wait(0.3);
                                     lcd.printString(" ",0,5);
-                                    lcd.printString(" ",4,5);
+                                    lcd.printString(" ",5,5);
                                     lcd.refresh();
                                     wait(0.3);
                                 }
@@ -496,7 +482,7 @@
             // 1. Display instruction
             // 2. Return to MENU screen
             
-            instruction();
+            grad.instruction(pad, lcd);
             currentState = MENU;
         break;
         }
@@ -514,64 +500,6 @@
     lcd.setContrast(0.4);
 }
 
-// Simple splash screen displayed on start-up
-void welcome() 
-{    
-        lcd.clear();
-        int title_data[35][65] = {
-            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,0,0,1,0,1,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-            {0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,0,1,0,1,0,1,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0},
-            {0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,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1,1,1,0,0,0,0,0,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0},
-            {0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1,0,0},
-            {0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,0,0,0},
-            {0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,1,1,0,0,0},
-            {0,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,0,1,1,1,1,0,0,0},
-            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        };
-        // Title "Pokemon ACADEMY"
-        lcd.drawSprite(10, 3, 35, 65, (int*)title_data);
-  
-        int start_data[5][41] = {
-            {1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1},
-            {1,0,1,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0},
-            {1,1,1,0,1,1,1,0,1,1,1,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,1,1,1,0,1,1,1,0,0,1,0},
-            {1,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,0,1,1,0,0,0,1,0},
-            {1,0,0,0,1,0,1,0,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0},
-        };
-        // Instruct to press start
-        lcd.drawSprite(22, 41, 5, 41, (int*)start_data);
-        lcd.refresh();
-        music.title_music(pad);
-
-}
-
 // Function for displaying the menu screen
 int menu()
 {
@@ -646,51 +574,6 @@
 
 }
 
-// Function for drawing year one title screen
-void year_one()
-{
-    lcd.clear();
-    int instruct_data[30][78] = {
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1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,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-    };
-    // Draw year 1 title
-    lcd.drawSprite(4, 9, 30, 78,(int *) instruct_data);
-    lcd.refresh();
-    
-    music.level_up(pad); // Play level up tone from music file
-    
-    wait(1.0);
-}
-
 // Function for setting year one game parameters
 void year_one_set()
 {
@@ -702,52 +585,7 @@
     game_2_cha = 1;
     game_2_r = 6;
     game_3_set = 1;
-    game_3_time = 0.5;
-}
-
-// Function for drawing year two title screen
-void year_two()
-{
-    lcd.clear();
-    int year_two_data[30][78] = {
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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0,0,0,0,0,0,0,0,0,0,0,0,0},
-    };
-    // Draw year 2 title
-    lcd.drawSprite(4, 9, 30, 78, (int *)year_two_data);
-    lcd.refresh();
-    
-    music.level_up(pad); // Play level up tone from music file
-    
-    wait(1.0);
+    game_3_time = 0.6;
 }
 
 // Function for setting year two game parameters
@@ -764,51 +602,6 @@
     game_3_time = 0.4;
 }
 
-// Function for drawing year three title screen
-void year_three()
-{
-    lcd.clear();
-    int year_three_data[30][78] = {
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
-        {1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-    };
-    // Draw year 3 title
-    lcd.drawSprite(4, 9, 30, 78,(int*) year_three_data);
-    lcd.refresh();
-    
-    music.level_up(pad); // Play level up tone from music file
-    
-    wait(1.0);
-}
-
 // Function for setting year three game parameters
 void year_three_set()
 {
@@ -823,298 +616,6 @@
     game_3_time = 0.3;
 }
 
-// Function for displaying the game information
-void instruction()
-{
-    Page currentPage = PAGE_1;
-    int fps = 8.0;
-    static int instruct_data[] = {
-                    1,1,1,1,1,1,1,
-                    0,1,1,1,1,1,0,
-                    0,0,1,1,1,0,0,
-                    0,0,0,1,0,0,0
-                };
-    
-    while(pad.check_event(Gamepad::BACK_PRESSED) == false){
-        switch (currentPage) {
-            case PAGE_1:
-                lcd.clear();
-                lcd.printString("PKM Academy",0,0);
-                lcd.printString("is an RPG",0,1);
-                lcd.printString("which simulates",0,2);
-                lcd.printString("the mundane",0,3);
-                lcd.printString("life of three",0,4);
-                lcd.drawSprite(39, 44, 4, 7, instruct_data);
-                lcd.refresh();
-                if(pad.get_direction() == S){currentPage = PAGE_2;} // Move to next page in joystick moved down
-                wait(1.0f/fps);
-            break;
-            case PAGE_2:
-                lcd.clear();
-                lcd.printString("uni students.",0,0);
-                lcd.printString("Explore and",0,1);
-                lcd.printString("conquer all",0,2);
-                lcd.printString("challenges uni",0,3);
-                lcd.printString("brings forth.",0,4);
-                lcd.drawSprite(39, 44, 4, 7, instruct_data);
-                lcd.refresh();
-                if(pad.get_direction() == S){currentPage = PAGE_3;} // Move to next page in joystick moved down
-                wait(1.0f/fps);
-            break;
-            case PAGE_3:
-                lcd.clear();
-                lcd.printString("Ride with them",0,0);
-                lcd.printString("the life of",0,1);
-                lcd.printString("frustration,",0,2);
-                lcd.printString("anger and ",0,3);
-                lcd.printString("despair! ",0,4);
-                lcd.printString("Press BACK",12,5); // Instruct the user to press BACK_button to return to MENU
-                lcd.refresh();
-                wait(1.0f/fps);
-            break;
-        }
-    }
-}
-
-// Function for drawing term one title screen
-void term_one()
-{
-    lcd.clear();
-    int term_data[30][78] = {
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1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-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-
-    };
-    lcd.drawSprite(4, 9, 30, 78, (int *) term_data);
-    lcd.refresh();
-    
-    music.level_up(pad);
-    
-    wait(1.0);
-}
-
-// Function for drawing term two title screen
-void term_two()
-{
-    lcd.clear();
-    int term_data[30][78] = {
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- 
-    };
-    lcd.drawSprite(4, 9, 30, 78,(int *) term_data);
-    lcd.refresh();
-    
-    music.level_up(pad);
-    
-    wait(1.0);
-}
-
-// Function for drawing term three title screen
-void term_three()
-{
-    lcd.clear();
-    int term_data[30][78] = {
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,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0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-   
-    };
-    lcd.drawSprite(4, 9, 30, 78,(int *) term_data);
-    lcd.refresh();
-    
-    music.level_up(pad);
-    
-    wait(1.0);
-}
-
-// Function for drawing mission success screen
-void win()
-{
-    int instruct_data[22][63] = {
-        {1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0},
-        {1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0},
-        {1,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0},
-        {1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0},
-        {1,0,0,1,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0},
-    };
-    lcd.clear();
-    lcd.drawSprite(10, 13, 22, 63, (int *)instruct_data);
-    lcd.refresh();
-}
-
-// Function for drawing mission failure screen
-void lose()
-{
-    int instruct_data[22][58] = {
-        {1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,0,0,0,0},
-        {1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0},
-        {1,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,0,0,0},
-        {1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,0},
-        {1,0,0,1,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,0,0},
-        {1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,0,1,1,0,0,0,0},
-        {1,0,0,1,1,1,0,0,1,1,0,0,1,1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,0,1,1,0,0,1,1,1,1,1,1,1},
-        {1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1},
-        {1,0,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0},
-        {1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,0},
-        {1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,0},
-        {1,0,0,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,0,0,0,1,1},
-        {1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
-        {0,1,1,1,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1},
-    };
-    lcd.clear();
-    lcd.drawSprite(10, 13, 22, 58,(int *) instruct_data);
-    lcd.refresh();
-}
-
-// Function for drawing you passed screen
-void passed()
-{
-    int instruct_data[10][83] = {
-        {1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,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1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,1},
-        {0,0,1,0,0,1,1,0,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,0,0,1,0,0,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,1,0},
-        {0,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0},
-        {0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,0,0},
-    };
-    lcd.clear();
-    lcd.drawSprite(0, 19, 10, 83, (int *) instruct_data);
-    lcd.refresh();
-}
-
-// Function for drawing you failed screen
-void failed()
-{
-    int instruct_data[10][77] = {
-        {1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0},
-        {1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0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,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0},
-        {0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,0,0},
-    };
-    lcd.clear();
-    lcd.drawSprite(4, 19, 10, 77, (int *)instruct_data);
-    lcd.refresh();
-}
-
 // INTENSE music played in background during exams, music originally from Pokemon (R/B/Y) during GYM leader battle
 void gym()
 {