Added function to add all array data, before win logic