How do i print a 2d array using for each