Now the flipping actually works and the class object can be referenced from the div itself, globally card array is deprecated! (but is left in for now)