When you declared `attr_accessor :opponent`, Ruby automatically creates this method for you