added array of objects flip functionality in the flipArray function