Changed the type of tuios from array to ArrayList.