    return (user0==val0 && user1==val1);
 }
 
-void start_delay_beep(int delay_time)
+void delay_beep(int delay_time, int tone1, int tone2)
   {
    if(start_delay)
    {
       for(int i = 0; i < 3; i++)
       {
         delay(delay_time);
-        tone(buzz_pin, 1900, 200);
+        tone(buzz_pin, tone1, 200);
       }
       delay(delay_time);
-      tone(buzz_pin, 3000, 200);
+      tone(buzz_pin, tone2, 200);
     }
 }
 
+void win_lvl()
+{
+  tone(buzz_pin, 1000, 300);
+  tone(buzz_pin, 1500, 300);
+  tone(buzz_pin, 3000, 400);
+}
+
+void win_all()
+{
+  tone(buzz_pin, 1500, 200);
+  tone(buzz_pin, 1500, 200);
+  tone(buzz_pin, 1500, 200);
+  tone(buzz_pin, 1500, 200);
+  tone(buzz_pin, 3000, 500);
+}
+
+void lose()
+{
+  tone(buzz_pin, 1500, 200);
+  tone(buzz_pin, 1000, 200);
+  tone(buzz_pin, 700, 200);
+  tone(buzz_pin, 500, 400);
+}
+
 void our_loop()
 {
-  start_delay_beep(400);
+  lcd.setRGB(100,100,100);
+  delay_beep(400, 1900, 3000);
   ++loop_count;
   button_state = digitalRead(button_pin);
   touch_state = digitalRead(touch_pin);

  
  if(ptr0>=ptr_max)//won this level!
  {
    clear_screen();
    lcd.setCursor(0,0);
    lcd.print("DONE! YOU WON!!");

         delay(1000);
         clear_screen();
         lcd.setCursor(0,0);
         lcd.print("hold button");
         lcd.setCursor(0,1);
         lcd.print("to play again");
         if(digitalRead(button_pin) || digitalRead(touch_pin))
