     default:
       break;
   } 
+  
 }
 
 /**

********************************************************************************/

/* Function returns the button name relating to the received code */
void irHandleInput(unsigned long code){
  /* Character array used to hold the received button name */
  char CodeName[3];
  /* Is the received code is a repeat code (NEC protocol) */

 */
void actionHappy()
{
  if (action_state != A_HAPPY) {
    Serial.println("Happy");
    
    // Set the state, so the action can be handled by the state machine.
    action_state = A_HAPPY;
    
    actionTimeoutStart(random(500,700));
    motionRotateLeft(255);
  }
}

void actionHappyStateMachine(byte motion_state)
{
  static byte count = 0;
  
  // Loop through left & right a few times.
  if (count > 3) {
    count = 0;
    actionStop(); 
  }
  
  switch (motion_state) {

    case M_ROTATE_LEFT:
      if (action_done) {
        count++;
        // Spin right for random amount of time
        actionTimeoutStart(random(500,700));
        motionRotateRight(255); 
