How do I get rid of wooden boxes?

You can match same colored spots located near the wooden boxes and they will be destroyed.