Flip piece logic

Flip back if the pieces are not match
Remove the pieces if they are match