if (inString == "X1"){
if (inString == "X0"){
if (inString == "Y1"){
if (inString == "Y0"){
What are the chances that more than one of these blocks will be executed? None. So, save some processing time, and use else if for the last three.