Pushing more than 3 arrays inside of an array causes unexpected output