How does the defense stat work?