     rightArm = armAtSideRight();
   }
 
+  //check back data
   if (strcmp(backData, "straight")==0) {
     back = backStraight();
   } else if (strcmp(backData, "fwd")==0) {

#include "ArduinoJson.h";
#include "Data.h";

const int backPin = 16;
const int rShoulderPin = 15;
const int rUnderarmPin = 14;
const int lShoulderPin = 18;
const int lUnderarmPin = 17;
const int buttonPin = 0;
/*
int backValue = -1;
int lShoulderValue = -1;
int rShoulderValue = -1;
int lUnderarmValue = -1;
int rUnderarmValue = -1;
*/
String jsonString;
String oldJSON;

const char* leftArmData;
const char* rightArmData;
const char* backData;
String type = "out";
const char* name;

//Could potentially take up too much memory
DynamicJsonBuffer jsonBuffer;
bool updated = false;

void setup() {
  Serial.begin(9600);
  pinMode(buttonPin, INPUT);
}

void loop() {
  String content = "";
  char character;

  while(Serial.available()) {
      character = Serial.read();
      content.concat(character);
      updated = true;
  }

  if (updated) {

  delay(500);
}

//Parse json string
void parseJSON(String content) {
  updated = false;
  JsonObject& in = jsonBuffer.parseObject(const_cast<char*>(content.c_str()));
