Replaced flip logic
Changed number of squares