Match3 logic created