private byte getCommandFromMovementKey(int[] acc) {
		if(acc[0]==1){
			if(acc[2]==1){
				return Constants.NORTHWEST;
			}
			else if(acc[3]==1){
				return Constants.NORTHEAST;
			}else{
				return Constants.NORTH;
			}
		}
		if(acc[1]==1){
			if(acc[2]==1){
				return Constants.SOUTHWEST;
			}
			else if(acc[3]==1){
				return Constants.SOUTHEAST;
			}else{
				return Constants.SOUTH;
			}
		}
		if(acc[2]==1){
			return Constants.WEST;
		}
		if(acc[3]==1){
			return Constants.EAST;
		}
		return -1;
	}