Mixed-up sunspot emits powerful solar flare