     else if (type == 1)
     {
       TempLayer = KeyLayer;
-<<<<<<< HEAD
       //ReleaseAllKey();
-=======
-      ReleaseAllKey();
->>>>>>> refs/remotes/origin/master
     }
     else if (type == 2) //DEPRECIATED
     {

// key states
int KeyState[COL][ROW];
int PreviousState[COL][ROW];
<<<<<<< HEAD
int LayerState[COL][ROW];
=======
>>>>>>> refs/remotes/origin/master

// slave states
boolean IS_MASTER = true;

      {
        TempLayer = val;
      }
      //ReleaseAllKey();
    }
    else if (type == 11)
    {
