 
 void goToSleep()
 {
+  if (sleeping) return;
   sleeping = true;
   display.sleep();
+  Serial.println("Going to sleep.");
 }
 
  void wakeup()
  {
-   if (!sleeping)
-     return;
+   if (!sleeping) return;
    
    sleeping = false;
+   Serial.println("Waking up.");
  }

#define P1PIN           2
#define P2PIN           3
#define LONGPRESS_TIME  1000
#define INACTIVEMILLIS  1200000 // 20 minutes

// Game Logics
volatile int p1Score = 0;

  if (sleeping)
    return;

  // Update the game
  game.updateScore(p1Score, p2Score);

